package com.xiaoyu.net.log

import `in`.srain.cube.util.log.LogEvent
import `in`.srain.cube.util.log.LogClient

class NetworkLogClientProxy : LogClient {

    companion object {
        val instance by lazy { NetworkLogClientProxy() }
        var client: LogClient? = null
    }

    override fun addLog(map: Map<String, String>) {
        client?.addLog(map)
    }

    override fun addLog(logEvent: LogEvent) {
        client?.addLog(logEvent)
    }

    override fun addTag(key: String, value: String) {
        client?.addTag(key, value)
    }
}